package com.tlgen.orm.test;

import com.tlgen.orm.annotation.Collection;
import com.tlgen.orm.model.BaseEntity;
import lombok.Data;

import java.util.List;

@Data
public class Book extends BaseEntity<Long> {

    private String title;

    @Collection(middle = AuthorBook.class)
    private List<Author> authors;

    private Long libraryId;

    private Long authorId;

}
